package com.googlecode.ascrblr.api.radio.xspf;

public enum XSPFElement {
	
	/** Playlist version (is currently not valid XSPF) */
	//TODO: Select only root attribute
	PLAYLIST_VERSION("//@version"),
	
	/** Playlist title */
	PLAYLIST_TITLE("/playlist/title/text()"),
	
	/** Skip count */
	PLAYLIST_SKIPCOUNT("/playlist/link[@rel='http://www.last.fm/skipsLeft']"),
	
	/** Playlist creator */
	PLAYLIST_CREATOR("/playlist/creator/text()"),
	
	/** Tracklist */
	PLAYLIST_TRACKLIST("/playlist/trackList/track");
	
	
	private String xpath;
	
	private XSPFElement(String xpath) {
		this.xpath = xpath;
	}
	
	public String getXPath(){
		return xpath;
	}

}
